package com.health.controller.role;

import com.alibaba.dubbo.config.annotation.Reference;
import com.health.entity.Result;
import com.health.service.RolesService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname RoleController
 * @Description TODO
 * @Version 1.0.0
 * @Date 2023/3/18 9:11
 * @Author RainGrd
 */
@RestController
@Slf4j
@RequestMapping("/role")
public class RoleController {


    @Reference
    private RolesService rolesService;


    @RequestMapping("/findRoleAll.do")
    public Result findRoleAll() {
        return rolesService.queryAll();
    }


}
